import Vue from 'vue'
import Vuex from 'vuex'
import MenuCount from "./module/MenuCount";
import loginmodules from "./module/login";
import Department from "./module/Department";
import RefundData from './module/RefundData';
import PreferentialData from './module/PreferentialData'
import FloorData from './module/FloorData'
import StatementNum from './module/StatementNum'

Vue.use(Vuex)

export default new Vuex.Store({
    // 放公共数据的地方
    state: {},
    // 放改变state的地方
    mutations: {},
    // 触发mutations的地方
    actions: {},
    // 根据业务将以上三个放在模块
    modules: {
        MenuCount,
        loginmodules,
        Department,
        RefundData,
        PreferentialData,
        FloorData,
        StatementNum
    }
})